package com.xl.service;

import com.xl.dao.UserRepository;
import com.xl.domain.entity.UserEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserService {

    @Autowired
    private UserRepository userRepository;

    /**
     * 登录
     * @param userForm
     * @return
     */
    public UserEntity login(UserEntity userForm){
        UserEntity userEntity=userRepository.queryLogin(userForm.getUsername(),userForm.getPassword());
        return userEntity;
    }
}
